"use client"

import { NextUIProvider } from "@nextui-org/react"
import { ThemeProvider as NextThemesProvider } from "next-themes";
import { ConfigProvider, theme } from 'antd';

export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <NextUIProvider>
      <NextThemesProvider attribute="class" defaultTheme="light">
        <ConfigProvider
          theme={{
            token: {
              colorPrimary: '#0066FF',
              borderRadius: 6,
            },
            components: {
              Card: {
                borderRadiusLG: 8,
              },
              Button: {
                borderRadius: 6,
              },
              Input: {
                borderRadius: 6,
              },
              Select: {
                borderRadius: 6,
              },
            },
          }}
        >
          {children}
        </ConfigProvider>
      </NextThemesProvider>
    </NextUIProvider>
  )
} 